package pattern.factory;

public class Cheese extends Pizza{

	PizzaSouceFactory pizzaFactory;
	
	public Cheese(){
	}

	public Cheese(PizzaSouceFactory pizzaFactory){
		this.pizzaFactory = pizzaFactory;
	}
	
	@Override
	void prepare() {
		pizzaFactory.createCheese();
	}

}
